package day20171008;

public class Lihuan {
        public static void main(String[] args) {

            Student s = new Student();

            s.name= "李环";

            s.age = 25;

            System.out.println("名字：" + s.name

                    + "\n" + "年龄：" + s.age);


            s.study();
            s.sleep();
        }
    }

    //学生类的创建
    class Student {

        String name;
        int age;
        String gender;


        public static void study() {
            System.out.println("学习让我快乐！");
        }


        public static void sleep() {
            System.out.println("睡觉让我开心！");
        }
    }


